package com.teapos.web;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.teapos.service.CustomerService;

@SuppressWarnings({"rawtypes", "unchecked"})
@RequestMapping("/customer")
@Controller
public class CustomerController extends BaseController {
	
	@Autowired
	private CustomerService customerService;
	
	@RequestMapping("/loadUsers")
	public String loadUsers(String name, String tel, Map map) {
		map.put("customers", customerService.queryCustomers(name, tel));
		return "customer/old";
	}

}
